package com.cskaoyan.order.client;

import com.cskaoyan.mall.api.OrderProductService;
import com.cskaoyan.mall.dto.ClearCartItemRequest;
import com.cskaoyan.mall.dto.ClearCartItemResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author by WANGJun
 * @date 2022/6/20 10:47
 */

@FeignClient("duolai-shopping")
public interface OrderFeignClient  extends OrderProductService {
    @RequestMapping(value = "/rpc/items",method = RequestMethod.DELETE)
    ClearCartItemResponse clearCartItemByUserID(@RequestBody ClearCartItemRequest request);
}
